.class public final Lcn/cheln/explorer/ds/a/d;
.super Ljava/lang/Object;


# instance fields
.field public a:Ljava/util/Stack;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/Stack;

    invoke-direct {v0}, Ljava/util/Stack;-><init>()V

    iput-object v0, p0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    return-void
.end method


# virtual methods
.method public final a(Lcn/cheln/explorer/ds/a/c;)V
    .locals 3

    const/4 v2, 0x1

    iget-object v0, p0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->size()I

    move-result v0

    if-ne v0, v2, :cond_1

    iget-object v0, p1, Lcn/cheln/explorer/ds/a/c;->c:Ljava/lang/String;

    sget-object v1, Lcn/cheln/explorer/ds/a/b;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/a/c;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/c;->c:Ljava/lang/String;

    sget-object v1, Lcn/cheln/explorer/ds/a/b;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->size()I

    move-result v0

    if-ne v0, v2, :cond_2

    sget-object v0, Lcn/cheln/explorer/ds/a/b;->b:Ljava/lang/String;

    iget-object v1, p1, Lcn/cheln/explorer/ds/a/c;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    sget-object v1, Lcn/cheln/explorer/ds/a/b;->b:Ljava/lang/String;

    iget-object v0, p0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/a/c;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/c;->c:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    :cond_2
    iget-object v0, p0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0, p1}, Ljava/util/Stack;->push(Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0
.end method

.method public final a()Z
    .locals 2

    const/4 v1, 0x1

    iget-object v0, p0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->size()I

    move-result v0

    if-gt v0, v1, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final b()Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->peek()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/ds/a/c;

    iget-object v0, p0, Lcn/cheln/explorer/ds/a/c;->b:Ljava/lang/Object;

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final toString()Ljava/lang/String;
    .locals 3

    const-string v0, "NavigationPool{navEntity="

    const/4 v1, 0x0

    :goto_0
    iget-object v2, p0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v2}, Ljava/util/Stack;->size()I

    move-result v2

    if-ge v1, v2, :cond_0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v0, p0, Lcn/cheln/explorer/ds/a/d;->a:Ljava/util/Stack;

    invoke-virtual {v0, v1}, Ljava/util/Stack;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/ds/a/c;

    iget-object v0, v0, Lcn/cheln/explorer/ds/a/c;->b:Ljava/lang/Object;

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v0, v0, Lcn/cheln/explorer/beans/FileInfo;->path:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, "}\n"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    return-object v0
.end method
